package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class LatentClient {
    //尝试开发
    public final static Integer CLIENT_PLAN=-1;
    //潜在客户
    public final static Integer CLIENT_LATENT=0;
    //正式客户
    public final static Integer CLIENT_STATE=1;
    //资源池客户
    public final static Integer CLIENT_RESOURCE=2;

    private Long id;
    //名字
    private String name;
    //年龄
    private Integer age;
    //性别
    private boolean gender;
    //电话
    private String tel;
    //邮箱
    private String email;
    //qq号
    private String qq;
    //负责人,自动填入当前用户,用户不可更改   JHKHK
    private Employee inChargeUser;
    //创建人,自动填入当前用户,用户不可更改
    private Employee inputUser;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputTime;

    private Integer status=CLIENT_LATENT;
    //转正时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date stateTime;
    //客户身份证号
    private String idCard;
    //客户地址
    private String address;
    //开发状态:1表示开发失败;0表示可转入正式客户
    private boolean state;

    //职位
    private DictionaryDetail job;
    //收入水平
    private DictionaryDetail income;
    //客户来源
    private DictionaryDetail resource;

}